package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.SchedulingstatusMapper;
import com.scheduling.system.domain.Schedulingstatus;
import com.scheduling.system.service.ISchedulingstatusService;

/**
 * 排班状态Service业务层处理
 * 
 * @author mj
 * @date 2025-05-07
 */
@Service
public class SchedulingstatusServiceImpl implements ISchedulingstatusService 
{
    @Autowired
    private SchedulingstatusMapper schedulingstatusMapper;

    /**
     * 查询排班状态
     * 
     * @param id 排班状态主键
     * @return 排班状态
     */
    @Override
    public Schedulingstatus selectSchedulingstatusById(Long id)
    {
        return schedulingstatusMapper.selectSchedulingstatusById(id);
    }

    /**
     * 查询排班状态列表
     * 
     * @param schedulingstatus 排班状态
     * @return 排班状态
     */
    @Override
    public List<Schedulingstatus> selectSchedulingstatusList(Schedulingstatus schedulingstatus)
    {
        return schedulingstatusMapper.selectSchedulingstatusList(schedulingstatus);
    }

    /**
     * 新增排班状态
     * 
     * @param schedulingstatus 排班状态
     * @return 结果
     */
    @Override
    public int insertSchedulingstatus(Schedulingstatus schedulingstatus)
    {
        return schedulingstatusMapper.insertSchedulingstatus(schedulingstatus);
    }

    /**
     * 修改排班状态
     * 
     * @param schedulingstatus 排班状态
     * @return 结果
     */
    @Override
    public int updateSchedulingstatus(Schedulingstatus schedulingstatus)
    {
        return schedulingstatusMapper.updateSchedulingstatus(schedulingstatus);
    }

    /**
     * 批量删除排班状态
     * 
     * @param ids 需要删除的排班状态主键
     * @return 结果
     */
    @Override
    public int deleteSchedulingstatusByIds(Long[] ids)
    {
        return schedulingstatusMapper.deleteSchedulingstatusByIds(ids);
    }

    /**
     * 删除排班状态信息
     * 
     * @param id 排班状态主键
     * @return 结果
     */
    @Override
    public int deleteSchedulingstatusById(Long id)
    {
        return schedulingstatusMapper.deleteSchedulingstatusById(id);
    }
}
